﻿<?
include("../Comm/Manage_err.php");
include("../Comm/Conn.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Netsys网站管理系统</title>
<link href="../Style/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
if($_POST['ADD_Check']){
$check=1;
     	$sql="update Netsys_Message set"
		." Tback='".$_POST[Tback]."',"
		." CheckTime='".date('Y-m-d')."'"
		." where ID=".htmlencode($_POST[ID])."" ;
		$query=mysql_query($sql);
		echo "<script language='javascript'>"; 
        echo "alert('留言处理成功！');";
        echo " location='Netsys_List.php';"; 
        echo "</script>";
}

		     $SQL="SELECT * FROM Netsys_Message where ID=".htmlencode($_GET[ID])."";
             $query=mysql_query($SQL);
			 $num=mysql_num_rows($query);
			 if($num==0){
			 echo "没有这条记录";
             echo "<br/>";
             echo "<a href='javascript:history.go(-1)'>返回上一页！</a>";
			 }
else
{
             $row=mysql_fetch_array($query)
?>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="10"></td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="right_tittle">
  <tr>
    <td width="3"><img src="../images/r1.jpg" width="10" height="33" /></td>
    <td><img src="../images/current.jpg" width="9" height="9" /> 当前位置 &gt;&gt; 信息反馈
    | 信息反馈处理</td>
    <td width="10" align="right"><img src="../images/r3.jpg" width="10" height="33" /></td>
  </tr>
</table>
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="2" class="right_con">
    <tr>
      <td height="490" align="center" valign="top" bgcolor="#FFFFFF">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <br />
        <form name="MyForm" action="" method="post">
        <table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CDD8DF" class="table_all" >
          <tr>
            <td width="19%" align="left" class="Left_td">公司名称：</td>
            <td width="81%" align="left" class="Right_td"><? echo $row['Subject']; ?></td>
          </tr>
          <tr>
            <td align="left" class="Left_td">姓名：</td>
            <td align="left" class="Right_td"><? echo $row['Name']; ?></td>
          </tr>
          <tr>
            <td align="left" class="Left_td">地址：</td>
            <td align="left" class="Right_td"><? echo $row['Address']; ?></td>
          </tr>
          <tr>
            <td align="left" class="Left_td">邮编：</td>
            <td align="left" class="Right_td"><? echo $row['Code']; ?></td>
          </tr>
          <tr>
            <td align="left" class="Left_td">电话：</td>
            <td align="left" class="Right_td"><? echo $row['Tel']; ?></td>
          </tr>
          <tr>
            <td align="left" class="Left_td">传真：</td>
            <td align="left" class="Right_td"><? echo $row['Fax']; ?></td>
          </tr>
          <tr>
            <td align="left" class="Left_td">电子邮箱：</td>
            <td align="left" class="Right_td"><? echo $row['email']; ?></td>
          </tr>
          <tr>
            <td align="left" class="Left_td">具体内容：</td>
            <td align="left" class="Right_td"><? echo $row['message']; ?></td>
          </tr>
          <tr>
            <td align="left" class="Left_td">留言时间：</td>
            <td align="left" class="Right_td"><? echo $row['DateTime']; ?></td>
          </tr>
          <tr>
            <td align="left" class="Left_td">处理意见：</td>
            <td height="68" align="left" class="Right_td">
            <textarea name="Tback" cols="60" rows="3" class="kuang" id="Tback"><? echo $row['Tback']; ?></textarea>
			<?
                if($row['Tback']!="")
				{
            ?>
            处理时间：<font color="#FF0000"><? echo $row['CheckTime']; ?></font>
            <?
			}
			?>
            </td>
          </tr>
          <tr>
            <td align="left" class="Left_td">&nbsp;</td>
            <td align="left" class="Right_td">
              <input name="submit" type="submit" onClick="return Check();" value=" 处理提交 " class="button">&nbsp;&nbsp;&nbsp;&nbsp;
               <input type="hidden" name="ADD_Check" value="ADD_Check"><input type="hidden" name="ID" value="<? echo $row['ID']; ?>">
            </td>
          </tr>
        </table>
        </form>
      </td>
    </tr>
</table>
<?
}
?>
</body>
</html>